package client;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class LogoutPanel extends JPanel{
	
	public LogoutPanel(Client client) {
		setLayout(new BorderLayout());
		JPanel login = new JPanel(new GridLayout(5,1));
		JLabel userName = new JLabel("You've been succesfully logged out.", JLabel.CENTER);
		JLabel password = new JLabel("Have a nice day!", JLabel.CENTER);
		login.add(userName);
		login.add(password);
		add(login, BorderLayout.NORTH);
		Dimension d = new Dimension(400,200);
		setSize(d);
		setPreferredSize(d);
		setLocation(client.getWidth()/2-this.getWidth()/2, 0);
	}
	
}
